package demo4grails

import org.grails.datastore.mapping.multitenancy.exceptions.TenantNotFoundException

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }

//        "/"(view:"/index")
        '/'(controller: 'manufacturer')
//        "500"(view:'/error')
        '500' (controller: 'manufacturer', exception: TenantNotFoundException)
        "404"(view:'/notFound')
    }
}
